import { Base } from '../utils/base.js';

class My extends Base {
    constructor() {
        super();
    }
	get_my_collection_record(data,callback){
		var params = {
		    url: 'store/getStoreMoneyList',
		    type: 'get',
			data:data,
		    loading: false,
		};
		this.apiRequest(params, callback);
	}
		//核销记录
	get_hexiao_record_list(data,callback) {
	    var params = {
	        url: 'daodian/hxList',
	        type: 'get',
			data:data,
	        loading: false,
	    };
	    this.apiRequest(params, callback);
	} 
		//协议同意或不同意
	is_agree(data,callback) {
	    var params = {
	        url: 'user/isAgree',
	        type: 'get',
			data:data,
	        loading: false,
	    };
	    this.apiRequest(params, callback);
	} 
	//地区
	get_area(callback) {
	    var params = {
	        url: 'address/area',
	        type: 'get',
	        loading: false,
	    };
	    this.apiRequest(params, callback);
	} 
	//客服
	get_kefu_mobile(callback) {
	    var params = {
	        url: 'index/kefu',
	        type: 'get',
	        loading: false,
	    };
	    this.apiRequest(params, callback);
	} 
	//用户信息
    get_user_info(callback) {
        var params = {
            url: 'User/getUserInfo',
            type: 'get',
            loading: true,
        };
        this.apiRequest(params, callback);
    } 
	//我的积分
	get_score_info(callback) {
        var params = {
            url: 'User/scoreInfo',
            type: 'get',
            loading: true,
        };
        this.apiRequest(params, callback);
    } 
	//赠送豆
	give_user_score(data,callback) {
        var params = {
            url: 'User/giveUserScore',
            type: 'get',
			data:data,
            loading: true,
        };
        this.apiRequest(params, callback);
    }
	//转赠搜索用户
	search_user(data,callback) {
        var params = {
            url: 'User/searchUser',
            type: 'get',
			data:data,
            loading: true,
        };
        this.apiRequest(params, callback);
    }
	//修改用户信息
	update_user_info(data,callback) {
        var params = {
            url: 'User/updateUserInfo',
            type: 'post',
			data:data,
            loading: true,
        };
        this.apiRequest(params, callback);
    } 
	//地址列表
    get_addr_list(callback) {
        var params = {
            url: 'address/getList',
            type: 'get',
            loading: true,
        };
        this.apiRequest(params, callback);
    } 
	//地址保存
	addr_save(data,callback) {
	    var params = {
	        url: 'address/save',
	        type: 'post',
	        loading: true,
			data:data
	    };
	    this.apiRequest(params, callback);
	} 
	//地址详情
	get_addr_detail(data,callback) {
	    var params = {
	        url: 'address/detail',
	        type: 'get',
	        loading: true,
			data:data
	    };
	    this.apiRequest(params, callback);
	}
	//地址默认设置
	set_addr_default(data,callback) {
	    var params = {
	        url: 'address/setDefault',
	        type: 'get',
	        loading: true,
			data:data
	    };
	    this.apiRequest(params, callback);
	}
	//地址删除
	addr_del(data,callback) {
	    var params = {
	        url: 'address/del',
	        type: 'get',
	        loading: true,
			data:data
	    };
	    this.apiRequest(params, callback);
	}
	//说明/协议
	get_agree(data,callback) {
	    var params = {
	        url: 'index/agree',
	        type: 'get',
	        loading: true,
			data:data
	    };
	    this.apiRequest(params, callback);
	}

	qrcode(callback) {
	    var params = {
	        url: 'user/qrcode',
	        type: 'get',
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//明细
	score_list(data,callback) {
	    var params = {
	        url: 'user/scoreList',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//我的余额
	get_my_money(data,callback) {
	    var params = {
	        url: 'user/myMoney',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//提现申请
	cash_apply(data,callback) {
	    var params = {
	        url: 'user/cashApply',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//我的佣金统计
	get_my_money_total(data,callback) {
	    var params = {
	        url: 'user/myMoneyTotal',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//佣金订单明细
	get_share_order_list(data,callback) {
	    var params = {
	        url: 'user/shareOrder',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//提现明细
	my_tx_log_list(data,callback) {
	    var params = {
	        url: 'user/myTxLogList',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//我的团队
	my_team_list(data,callback) {
	    var params = {
	        url: 'user/myTeamList',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//我的团队总数
	my_team_count(callback) {
	    var params = {
	        url: 'user/myTeamCount',
	        type: 'get',
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//我的分享码
	my_share_code(callback) {
	    var params = {
	        url: 'user/myShareCode',
	        type: 'get',
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}


	//余额明细
	money_log_list(data,callback) {
	    var params = {
	        url: 'user/moneyLogList',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//评论订单详情
	get_comment_order(data,callback) {
	    var params = {
	        url: 'user/commentOrder',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//评论订单
	comment_order(data,callback) {
	    var params = {
	        url: 'user/commentAdd',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//签到信息
	sign_info(data,callback) {
	    var params = {
	        url: 'user/signInfo',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//签到
	sign(callback) {
	    var params = {
	        url: 'user/sign',
	        type: 'get',
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//收藏
	get_collect_list(data,callback) {
	    var params = {
	        url: 'user/collectList',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//优惠券
	get_coupon_list(data,callback) {
	    var params = {
	        url: 'user/coupon',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//我的优惠券
	get_my_coupon_list(data,callback) {
	    var params = {
	        url: 'user/myCoupon',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//优惠券领取
	get_coupon(data,callback) {
	    var params = {
	        url: 'user/getCoupon',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//下单可用优惠券
	get_yes_coupon(data,callback) {
	    var params = {
	        url: 'user/getYesCoupon',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//推广人信息
	get_share_info(data,callback) {
	    var params = {
	        url: 'user/shareInfo',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//推广人申请
	share_apply(data,callback) {
	    var params = {
	        url: 'user/shareApply',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//私域流量
	my_bind_list(data,callback) {
	    var params = {
	        url: 'user/myBindList',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//跨界盈利
	my_spread_count(data,callback) {
	    var params = {
	        url: 'user/spreadCount',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
}

export { My };
